import Layout from '@/layout'

export default {
  path: '/dashboard',
  name: 'dashboard',
  component: Layout,
  redirect: '/dashboard/summary',
  hidden: false,
  alwaysShow: true,
  order: 0,
  meta: { title: '数据看板', icon: 'el-icon-pie-chart' },
  children: [
    {
      path: 'summary',
      name: 'summary',
      component: () => import('@/views/databoard/data-panel'),
      meta: { title: '数据看板' },
    },
    {
      path: 'films',
      name: 'films',
      component: () => import('@/views/databoard/movie-panel'),
      meta: { title: '影片数据看板' },
    },
    {
      path: 'simple_film',
      name: 'simple_film',
      hidden: true,
      component: () => import('@/views/databoard/detail-panel'),
      meta: { title: '单影片数据看板', activeMenu: '/databoard/movie-panel' },
    },
    {
      path: 'film_detail',
      name: 'film_detail',
      hidden: true,
      component: () => import('@/views/databoard/simple_detail'),
      meta: { title: '单个影片数据详情', activeMenu: '/databoard/movie-panel' },
    },
    {
      path: 'film_user',
      name: 'film_user',
      hidden: true,
      component: () => import('@/views/databoard/detailView'),
      meta: { title: '用户详情', activeMenu: '/databoard/movie-panel' },
    },
    {
      path: 'proceedAccount',
      name: 'proceedAccount',
      component: () => import('@/views/databoard/proceedAccount'),
      meta: { title: '收款账号' },
    },
  ],
}
